import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '外键，职工',
    align:"center",
    dataIndex: 'employeeId'
   },
   {
    title: '外键，用户',
    align:"center",
    dataIndex: 'userId'
   },
   {
    title: '外键，职工所属单位',
    align:"center",
    dataIndex: 'apartId'
   },
   {
    title: '外键，核定/框定单位',
    align:"center",
    dataIndex: 'checkDetermineApartId'
   },
   {
    title: '得分',
    align:"center",
    sorter: true,
    dataIndex: 'score'
   },
   {
    title: '报名时间',
    align:"center",
    sorter: true,
    dataIndex: 'applyTime'
   },
   {
    title: '排名',
    align:"center",
    sorter: true,
    dataIndex: 'rank'
   },
   {
    title: '是否入围',
    align:"center",
    dataIndex: 'isShortlisted_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '外键，职工',
    field: 'employeeId',
    component: 'Input',
  },
  {
    label: '外键，用户',
    field: 'userId',
    component: 'Input',
  },
  {
    label: '外键，职工所属单位',
    field: 'apartId',
    component: 'Input',
  },
  {
    label: '外键，核定/框定单位',
    field: 'checkDetermineApartId',
    component: 'Input',
  },
  {
    label: '得分',
    field: 'score',
    component: 'InputNumber',
  },
  {
    label: '报名时间',
    field: 'applyTime',
    component: 'Input',
  },
  {
    label: '排名',
    field: 'rank',
    component: 'InputNumber',
  },
  {
    label: '是否入围',
    field: 'isShortlisted',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
  },
];
